add_subdirectory("./msg_handler")
add_subdirectory("./session")
add_subdirectory("./async_server")

add_executable(async_server ./main.cpp)

# target_include_directories("./async_server")

target_include_directories(async_server PUBLIC
	"${CMAKE_CURRENT_SOURCE_DIR}/const" # 对于const下的.h文件，使用到msg_node.h的cmakelists都需要包含const，否则会报错找不到msg_type.h文件
	${Boost_INCLUDE_DIRS}
	${util_SOURCE_DIR}
	${async_server_SOURCE_DIR}
	${SessionObj_SOURCE_DIR}
	${MsgHandlerObj_SOURCE_DIR}
)

target_link_libraries(async_server PUBLIC
#	jsoncpp_lib
	util_shared # 无法链接动态库？？？
	util_static
	SessionObj
	MsgHandlerObj
	AsyncServerObj
)
